OpenGL 3D Camera Control Assessment

Due Wednesday 16th December 2013 5pm. Zip up the source for the project and add it to Blackboard (go to "Project Upload"/ "OpenGL Camera Assignment" and attach the file there.

1. Create an SFML/OpenGL project with the code here;

2. Add the assimp asset import library to your project (we will use it for 3D matrix transformations).

3. Study the code here. It shows how to manipulate assimp vectors and matrices in code.

4. Below is the skeleton of a camera class. You should add code to your project and complete the functions marked TODO. (The MoveForwardBack function is done for you).

 

5. You should add a camera object to your app (see code below). The camera defaults to being positioned on the origin, looking along the z-axis

6. In your event handler code you should add the following

7. You tell OpenGL about the camera position, using the following code at the start of each render;

8. Your camera should be able to move left/right/up/down, and turn left/right &up/down.

9. You should code the PageUp/PageDown keys to 'zoom' in and out.

9. You should be able to press a key to switch to 'orthographic' projection mode. In this mode you should still be able to control the camera and zoom.

10. Display on screen the following information (this link to describes how to display text in SFML)